home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11909 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  36 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!dindia
  3. From: dindia@netcom.com (John Paul D'India)
  4. Subject: [Q] Watcom (DOS4GW) free memory
  5. Message-ID: <dindiaDoDLtp.IqB@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. X-Newsreader: TIN [version 1.2 PL1]
  8. Date: Sat, 16 Mar 1996 19:51:24 GMT
  9. Sender: dindia@netcom22.netcom.com
  10.  
  11.  
  12.   I'm in the process of switching from Borland Pascal to Watcom C++ 10.0a. 
  13. I am trying to figure out how much free memory my program can access under
  14. DOS4GW.  I opened up the "programmer's guide" help, found a nice section
  15. titled "determining free memory under DOS4GW", and when I ran the little
  16. example program, it gave me a whole big long list of information (luckily
  17. at the top was largest available block - which looked close if not exact). 
  18. So, I popped in a malloc, displayed the information, freed the memory, and
  19. displayed the information again.  The free memory didn't go back up..?  I
  20. have no idea how Watcom manages memory, so if someone could give myself
  21. and other Watcom newbies in this group the low-down, it would be
  22. appreciated.  I'd also like to know if I allocate memory, what the 
  23. minimum size is (I think it's 4K, which stinks)?  Has anyone written a 
  24. memory library that allocates all the memory and then manages things 
  25. itself (is it smart to do this..?)?  Is there a better newsgroup to ask 
  26. these questions in (or maybe a pointer to where I can find this stuff in 
  27. the manual)?
  28.  
  29. -- 
  30. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  31. John Paul D'India - D'India Software - Game Developer (programmer)
  32. dindia@netcom.com   http://www.ax.com/dindia
  33. "The greatest of all mistakes is to believe in individualism
  34. in a society where one is dependant upon others."
  35. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  36.